import request from '@/utils/request'
//获取领用列表
export function getAssetsReceiveList(params) {
  return request({
    url: '/Interface/GetReceiveList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//添加领用
export function AddAssetsReceive(params) {
  return request({
    url: '/Interface/SaveReceive',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//查询领用详细
export function getAssetsReceiveDetail(params) {
  return request({
    url: '/Interface/GetReceiveSubList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//获取可领用的资产列表(用于添加)
export function getAssetsCanReceive(params) {
  return request({
    url: '/Interface/GetInStorage',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//领用作废
export function ReceiveAssetsRevoke(params) {
  return request({
    url: '/Interface/SaveReceiveClose',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//获取退还列表
export function GetAssetsReturnList(params) {
  return request({
    url: '/Interface/GetReceiveReturnList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//添加资产退还
export function AddAssetsReturn(params) {
  return request({
    url: '/Interface/SaveReceiveReturn',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//查询退还详情
export function getAssetsReturnDetail(params) {
  return request({
    url: '/Interface/GetReceiveReturnSubList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//获取可以退还的资产
export function getAssetsCanRturn(params) {
  return request({
    url: '/Interface/GetInStorage',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
